const fs = require('fs')
const path = require('path')
function createIfNotExist (dirPath) {
  if (fs.existsSync(dirPath)) {
    return true
  } else {
    if (createIfNotExist(path.dirname(dirPath))) {
      fs.mkdirSync(dirPath)
      return true
    }
  }
}
exports.createIfNotExist = createIfNotExist
